package cn.yuxiaoyuan.pojo.ro;

import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotEmpty;

/**
 * @author solargen
 * @version 1.0
 * @date 2025/6/13 14:27
 */
@Data
public class LoginRo {
    @NotEmpty(message = "用户名不能为空")
    private String username;
    @NotEmpty(message = "密码不能为空")
    private String password;
    @Range(min = 0,max = 2,message = "参数类型错误")
    private Integer type;// 0管理员  1司机  2乘客
}
